package org.lq.ht.view.cash;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JTextField;
import javax.swing.JTextArea;
import javax.swing.JButton;

/**
 * 现金收支管理界面
 * @package org.lq.ht.view.cash
 * @date 2020年8月21日下午10:57:46
 */
public class CashMain extends JFrame {

	private JPanel contentPane;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					CashMain frame = new CashMain();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public CashMain() {
		setTitle("现金管理");
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 631, 498);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel label = new JLabel("当前登录的用户:");
		label.setFont(new Font("宋体", Font.PLAIN, 16));
		label.setBounds(109, 71, 132, 36);
		contentPane.add(label);
		
		JLabel label_1 = new JLabel("前台收银演示");
		label_1.setFont(new Font("宋体", Font.PLAIN, 16));
		label_1.setBounds(270, 77, 132, 24);
		contentPane.add(label_1);
		
		JLabel label_2 = new JLabel("收到/支出:");
		label_2.setFont(new Font("宋体", Font.PLAIN, 16));
		label_2.setBounds(151, 117, 110, 45);
		contentPane.add(label_2);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setFont(new Font("宋体", Font.PLAIN, 16));
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"收到现金", "支出现金"}));
		comboBox.setBounds(270, 129, 132, 23);
		contentPane.add(comboBox);
		
		JLabel label_3 = new JLabel("方式:");
		label_3.setFont(new Font("宋体", Font.PLAIN, 16));
		label_3.setBounds(184, 181, 58, 24);
		contentPane.add(label_3);
		
		JLabel label_4 = new JLabel("现金");
		label_4.setFont(new Font("宋体", Font.PLAIN, 16));
		label_4.setBounds(270, 179, 104, 29);
		contentPane.add(label_4);
		
		JLabel label_5 = new JLabel("发生金额:");
		label_5.setFont(new Font("宋体", Font.PLAIN, 16));
		label_5.setBounds(151, 227, 99, 36);
		contentPane.add(label_5);
		
		textField = new JTextField();
		textField.setBounds(270, 236, 132, 21);
		contentPane.add(textField);
		textField.setColumns(10);
		
		JLabel label_6 = new JLabel("事项:");
		label_6.setFont(new Font("宋体", Font.PLAIN, 16));
		label_6.setBounds(184, 286, 58, 36);
		contentPane.add(label_6);
		
		JTextArea textArea = new JTextArea();
		textArea.setBounds(270, 293, 143, 74);
		contentPane.add(textArea);
		
		JButton button = new JButton("确定");
		button.setFont(new Font("宋体", Font.PLAIN, 16));
		button.setBounds(86, 409, 97, 23);
		contentPane.add(button);
		
		JButton button_1 = new JButton("收支历史明细");
		button_1.setFont(new Font("宋体", Font.PLAIN, 16));
		button_1.setBounds(234, 409, 143, 23);
		contentPane.add(button_1);
		
		JButton button_2 = new JButton("取消");
		button_2.setFont(new Font("宋体", Font.PLAIN, 16));
		button_2.setBounds(410, 410, 97, 23);
		contentPane.add(button_2);
	}
}
